/*
 *  Copyright (c) 2022 ZhuHai Jieli Technology Co.,Ltd.
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 *  limitations under the License.
 */

#ifndef  __EFUSE_H__
#define  __EFUSE_H__

#include "los_typedef.h"

u16 get_chip_id(void);
u16 get_vbat_trim(void);
u16 get_vbg_trim(void);
u8 get_sysdvdd_trim(void);
u32 get_chip_version(void);

u16 get_lrc_ws_inc(void);            // from uboot
u16 get_lrc_ws_init(void);        // from uboot
u16 get_btosc_ws_inc(void);        // from uboot
u16 get_btosc_ws_init(void);        // from uboot
u8 get_lrc_change_mode(void);    // from uboot

u32 get_boot_flag(void);
void set_boot_flag(u32 flag);

u32 p33_rd_page(u8 page);

#endif  /* EFUSE_H */
